/* Status App Styles - 清爽风格，所有class加cd-前缀避免冲突 */

.cd-status-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

/* 标签页 */
.cd-status-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.cd-status-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-status-tab:hover {
  background: #e9ecef;
}

.cd-status-tab.cd-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 内容区域 */
.cd-status-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* 空状态 */
.cd-status-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #adb5bd;
}

.cd-status-empty .cd-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cd-status-empty .cd-empty-text {
  font-size: 14px;
}

/* 用户状态卡片 */
.cd-user-status-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cd-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f3f5;
}

.cd-status-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cd-status-name {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  flex: 1;
}

/* 货币显示 */
.cd-status-currency {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  white-space: nowrap;
  border: 2px solid #ffed4e;
}

/* 信息区块 */
.cd-info-section {
  margin-bottom: 16px;
}

.cd-info-section:last-child {
  margin-bottom: 0;
}

.cd-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #667eea;
}

.cd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.cd-info-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.cd-info-label {
  font-size: 11px;
  color: #868e96;
  margin-bottom: 4px;
}

.cd-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.cd-info-text {
  font-size: 13px;
  color: #495057;
  line-height: 1.6;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* 好友ID样式 */
.cd-friend-id {
  font-size: 12px;
  color: #667eea;
  font-family: 'Courier New', monospace;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed #667eea;
  word-break: break-all;
}

/* 服装列表 */
.cd-clothing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-clothing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.cd-clothing-item:hover {
  background: #e9ecef;
}

.cd-clothing-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cd-clothing-slot {
  font-size: 12px;
  color: #868e96;
  min-width: 50px;
}

.cd-clothing-name {
  font-size: 13px;
  color: #212529;
  font-weight: 500;
}

.cd-clothing-name.cd-empty {
  color: #adb5bd;
  font-style: italic;
}

.cd-clothing-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-clothing-btn.cd-remove {
  background: #ff6b6b;
  color: #ffffff;
}

.cd-clothing-btn.cd-remove:hover {
  background: #fa5252;
  transform: scale(1.05);
}

.cd-clothing-btn.cd-remove:active {
  transform: scale(0.95);
}

/* NPC列表 */
.cd-npc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-npc-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cd-npc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: -16px -16px 0 -16px;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.cd-npc-header:hover {
  background: #e9ecef;
}

.cd-npc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cd-npc-name {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  flex: 1;
}

.cd-npc-favor {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* 好感度颜色 */
.cd-npc-favor.cd-favor-high {
  background: #ffe3e3;
  color: #e03131;
}

.cd-npc-favor.cd-favor-mid {
  background: #fff5f5;
  color: #ff8787;
}

.cd-npc-favor.cd-favor-neutral {
  background: #f1f3f5;
  color: #adb5bd;
}

.cd-npc-favor.cd-favor-low {
  background: #e7f5ff;
  color: #5c7cfa;
}

.cd-npc-favor.cd-favor-hostile {
  background: #dbe4ff;
  color: #364fc7;
}

/* NPC展开收起 */
.cd-npc-toggle {
  font-size: 14px;
  color: #868e96;
  transition: transform 0.2s;
  margin-left: auto;
}

.cd-npc-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  padding-top: 16px;
}

.cd-npc-content.cd-expanded {
  max-height: 2000px;
  opacity: 1;
}

.cd-npc-content.cd-collapsed {
  max-height: 80px;
  opacity: 1;
  padding-top: 16px;
}

/* 内心想法区块 - 永远显示 */
.cd-inner-thought-section {
  margin-bottom: 12px !important;
  position: relative;
  z-index: 1;
}

.cd-inner-thought {
  font-size: 13px;
  color: #495057;
  line-height: 1.6;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3d9 100%);
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
  min-height: 50px;
  display: flex;
  align-items: center;
}

/* 确保收起状态下内心想法仍然可见 */
.cd-npc-content.cd-collapsed .cd-inner-thought-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* 收起状态下隐藏其他内容 */
.cd-npc-content.cd-collapsed > .cd-info-section:not(.cd-inner-thought-section) {
  display: none;
}

/* 人物记忆 */
.cd-memory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-memory-item {
  font-size: 12px;
  color: #495057;
  line-height: 1.5;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #74c0fc;
}

/* 滚动条样式 */
.cd-status-content::-webkit-scrollbar {
  width: 6px;
}

.cd-status-content::-webkit-scrollbar-track {
  background: transparent;
}

.cd-status-content::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.cd-status-content::-webkit-scrollbar-thumb:hover {
  background: #ced4da;
}

/* 响应式调整 */
@media (max-width: 400px) {
  .cd-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-clothing-slot {
    min-width: 40px;
  }

  .cd-status-name {
    font-size: 18px;
  }
}
